.container {
  height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #f7f8fa; // Vant 默认背景色
}

.conversation-list {
  flex: 1;
  overflow-y: auto; // 确保列表可滚动
}

.conversation-item {

  background-color: #fff;
  position: relative; // 为徽章定位

  .avatar {
    margin-right: 12px;
  }

  .content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    margin-left: 6rpx;
    width: 100%;
  }

  .top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
    width: 100%;

    .nickname {
      font-size: 26rpx;
      font-weight: bold;
      color: #323233;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      max-width: 100%; // 留出时间的位置，防止过长
    }

    .time {
      font-size: 24rpx;
      text-align: right;
      color: #969799;
      flex-shrink: 0; // 防止时间被压缩
    }
  }

  .last-message {
    font-size: 24rpx;
    color: #969799;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .unread-badge {
    position: absolute;
    top: 10rpx; // 徽章位置调整
    left: 100rpx;
    background-color: #fa3534;
    /* 红色背景 */
    color: #fff;
    /* 白色字体 */
    font-size: 20rpx;
    /* 字体大小 */
    text-align: center;
    line-height: 16px;
    /* 垂直居中 */
    border-radius: 50%;
    /* 圆角 */
    padding: 4px;
    min-width: 20rpx;
    /* 最小宽度，确保显示数字 */
    height: 20rpx;
    line-height: 20rpx;
    white-space: nowrap;
    font-weight: bold;
  }
}

.loading-more {
  text-align: center;
  padding: 15px 0;
  color: #969799;
  font-size: 14px;
}